<#assign filePath>${project.projectName}/${project.projectName}-biz/src/main/java/${project.basePackage?replace(".","/")}/${model.moduleName?replace(".","/")}/model/</#assign>
<#assign fileName>${model.name?cap_first}.java</#assign>
<#if model.type!="DICT"><#stop></#if>
package ${project.basePackage}.${model.moduleName}.model;

import com.fa4j.common.base.model.BaseEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@Schema(description = "${model.remark}")
@RequiredArgsConstructor
public enum ${model.name?cap_first} implements BaseEnum {
    <#list model.fieldList as field>
    ${field.name?upper_case}(${field.priority}, "${field.remark}"),
    </#list>
    ;
    private final Integer code;
    private final String name;

}


